import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import Log from './plugins/index'

// 组件库
import Vant from 'vant';
import 'vant/lib/index.css';

// 懒加载
// import VueLazyload from 'vue-lazyload'

// Vue.use(VueLazyload, {
//   preLoad: 1.3,
//   // error: require('@/assets/loding@3x.png'),
//   loading: require('@/assets/logo.png'),
//   // attempt: 1
// })

// console.log(process.env, '当前环境');

// 使用组件库
Vue.use(Vant);

Vue.config.productionTip = false;

// 改标题
Vue.use(Log, {
  title: "练习"
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')